<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>管理中心</title>
<link rel="stylesheet" href="<?php echo $this->baseUrl;?>/files/admin/css/main.css" />
<script language="javascript" src="<?php echo $this->baseUrl;?>/files/admin/js/jquery.js"></script>
<link rel="stylesheet" href="<?php echo $this->baseUrl;?>/files/admin/js/formValidator.jquery/style.css" />
<script language="javascript" src="<?php echo $this->baseUrl;?>/files/admin/js/formValidator.jquery/cn.js"></script>
</head>

<body>
	<div id="main">
		<div id="navigation">当前位置 ： SourceId导入 </div>
		<div id="body">
			<div id="edit">
				<form action="" method="post" enctype="multipart/form-data" name="editForm" id="editForm">
					<table width="100%" class="table">
						<tr class="dataLine">
							<td width="32%">选择文件：</td>
						  <td width="68%">
							  <input type="file" name="uploadfile"/>
						    仅支持EXCEL格式文件，<a href="<?php echo $this->baseUrl;?>/data/memberTemp/YEK-SID-Template.xls" target="_blank">下载模版</a>
							</td>
						</tr>
						
						<tr class="dataLine">
						  <td>&nbsp;</td>
						  <td>一次必须导入一千行以下记录。</td>
					  </tr>
						<tr>
							<td>&nbsp;</td>
							<td><input type="submit" value="提交" class="button" /></td>
						</tr>
					</table>
			  </form>
			</div>
		</div>
</div>
<script>
$(function(){
	$("#cb_1").click(function(){
	
		if($(this).attr("checked")==true)
		{
			$(".tr_cb_1").show();
		}
		else
		{
			$(".tr_cb_1").hide();
		}
	})
	
	$("#cb_2").click(function(){
		if($(this).attr("checked")==true)
		{
			$(".tr_cb_2").show();
		}
		else
		{
			$(".tr_cb_2").hide();
		}
	})
	$("#cb_3").click(function(){
		if($(this).attr("checked")==true)
		{
			$(".tr_cb_3").show();
		}
		else
		{
			$(".tr_cb_3").hide();
		}
	})
})
</script>
<script language="javascript">
function checkCode(code)
{

	
    var url = '<?php echo $this->projectUrl(array('action'=>'get-member-is-exists-by-json', 'code'=>'{code}'), NULL, false);?>'+'?rand/' + Math.random();
	url = url.replace('{code}', code);
	checkResult = {'isRight':true, 'message':''};
	
	if ($.trim($("#code").val()) == '') {
		return checkResult = {'isRight':false, 'message':'请输入渠道编号。'};
	}
	if ($.trim($("#code").val()).search(/^[a-zA-Z0-9]{1,50}$/) == -1) {
		return checkResult = {'isRight':false, 'message':'渠道编号填写英文字母、数字，请返回重新填写！il地址。'};
	}
	
	if (code != '') {
		$.ajax({
			type: "GET",
			url: url,
			dataType: "json",
			async: false,
			success: function(data){
				if (data == 1) {
					checkResult = {'isRight':false, 'message':'* 这个编号已经被注册过，请换一个。'};
				}
			} 
		});
	}
	return checkResult;
}</script>


</body>
</html>